<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Ubicaciones.aspx.cs" Inherits="Web.Ubicaciones" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            color: #000000;
        }
        .style2
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div width="100%">
        <asp:Panel ID="Panel_Ubicaciones" runat="server" BackColor="White" width="100%">
            &nbsp;&nbsp;&nbsp;
            <asp:HyperLink ID="HyperLink_Ubicaciones" runat="server" Font-Bold="True" 
                Font-Size="XX-Large" ForeColor="Silver">Ubicaciones</asp:HyperLink>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Image ID="Banner" runat="server" 
                ImageUrl="~/IMG/Banner.jpg" Width="308px" />
            &nbsp;<asp:Panel ID="Panel2_Ubicaciones" runat="server" BackColor="#E8E8E8" width="100%">
                <table width="100%">
                    <tr>
                        <td align="left">
                            <asp:Label ID="Lbl_Periodo" runat="server" class="lbl" Text="Periodo"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:Label ID="Txt_Periodo" runat="server" class="lbl"></asp:Label>
                        </td>
                       <td align="left">
                        <asp:Label ID="Lbl_Codigo" runat="server" class="lbl" Text="Codigo"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:Label ID="Txt_Codigo" runat="server" class="lbl" Text="Codigo"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:Button ID="Btn_Aprobar" runat="server" CssClass="save" Height="35px" 
                                OnClick="Btn_Aprobar_Click" Visible="true" Width="35px" 
                                ToolTip="Grabo o Actualiza una Ubicacion" />
                        </td>
                      
                        <td align="left">
                            <asp:Button ID="btnNuevo" runat="server" CssClass="new" 
                                onclick="btnNuevo_Click1" ToolTip="Limpia los Controles de la pagina" />
                        </td>
                      
                    </tr>
                    <tr>
                         <td align="left">
                        <asp:Label ID="Lbl_Bodega" runat="server" class="lbl" Text="Bodega"></asp:Label>    
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="cboBodega" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="cboBodega_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                        <asp:Label ID="Lbl_Pasillo" runat="server" class="lbl" Text="Pasillo"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="cboPasillo" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td align="left">
                            &nbsp;</td>
                        
                         <td align="left">
                             &nbsp;</td>
                        
                    </tr>
                    <tr>
                       <td align="left">
                        <asp:Label ID="Lbl_Ubicacion" runat="server" class="lbl" Text="Ubicacion" 
                                CssClass="style1"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="Txt_Ubicacion" runat="server" Width="192px" MaxLength="15"></asp:TextBox>
                        </td>
                         <td align="left">
                             &nbsp;</td>
                        <td align="left">
                            &nbsp;</td>
                        <td align="left">
                            &nbsp;</td>
                        
                        <td align="left">
                            &nbsp;</td>
                        
                    </tr>
                   
                </table>
                <table class="style2">
                    <tr>
                        <td>
                            <asp:GridView ID="GridView_Ubicaciones" runat="server" 
                                AutoGenerateColumns="False" BorderColor="#E0040B" BorderStyle="Ridge" 
                                BorderWidth="5px" EnableModelValidation="True" Height="165px" 
                                OnRowCommand="GridView_Ubicaciones_RowCommand" 
                                onselectedindexchanged="GridView_Ubicaciones_SelectedIndexChanged" 
                                style="margin-top: 0px" Width="100%">
                                <HeaderStyle BackColor="#343434" ForeColor="White" />
                                <AlternatingRowStyle BackColor="silver" />
                                <Columns>
                                    <asp:TemplateField FooterText="Periodo" HeaderText="Periodo">
                                        <ItemTemplate>
                                            <asp:Label ID="Label8" runat="server" class="lbl" Text='<%# Bind("Periodo") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="Codigo" HeaderText="Codigo" Visible="False">
                                        <ItemTemplate>
                                            <asp:Label ID="Label9" runat="server" class="lbl" Text='<%# Bind("Codigo") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="Bodega" HeaderText="Bodega">
                                        <ItemTemplate>
                                            <asp:Label ID="Label11" runat="server" class="lbl" 
                                                Text='<%# Bind("Bodega") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="Pasillo" HeaderText="Pasillo">
                                        <ItemTemplate>
                                            <asp:Label ID="Label13" runat="server" class="lbl" 
                                                Text='<%# Bind("Pasillo") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="Ubicacion" HeaderText="Ubicacion">
                                        <ItemTemplate>
                                            <asp:Label ID="Label14" runat="server" class="lbl" 
                                                Text='<%# Bind("Ubicacion") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="Edicion" HeaderText="Accion">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="Btn_Edit" runat="server" AlternateText="Editar" 
                                                CommandName="Select" ImageUrl="~/img/edit.gif" />
                                            <asp:ImageButton ID="Btn_Delete" runat="server" AlternateText="Eliminar" 
                                                CommandArgument='<%# Bind("Codigo") %>' CommandName="Eliminar" 
                                                ImageUrl="~/img/delete.gif" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <br />
            </asp:Panel>
        </asp:Panel>
    </div>
</asp:Content>

